﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using PhanMemQLCTQuangVinh.DTO;

namespace PhanMemQLCTQuangVinh.DTO
{
    public class DTOCongNoBanHang
    {
        public int MaCNBH { get; set; }
        public string MaDH { get; set; }
        public int MaKH { get; set; }
        public int MaNV { get; set; }
        public DateTime NgayTraNo { get; set; }
        public decimal TienTT { get; set; }
        //public int MaThanhToan { get; set; }

        public DTOCongNoBanHang()
        { }

        public DTOCongNoBanHang(DataRow dongDL)
        {
            MaCNBH = (int)dongDL["MaCNBH"];
            MaDH = dongDL["MaDH"].ToString();
            MaKH = (int)dongDL["MaKH"];
            MaNV = (int)dongDL["MaNV"];
            NgayTraNo = (DateTime)dongDL["NgayTraNo"];
            TienTT = (decimal)dongDL["TienTT"];
         //   MaThanhToan = (int)dongDL["MaThanhToan"];
        }
    }
}